home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.4)
-
- import pickle
- import cPickle
- import unittest
- from test import test_support
- from test.pickletester import AbstractPickleTests
-
- class DumpCPickle_LoadPickle(AbstractPickleTests):
- error = KeyError
-
- def dumps(self, arg, proto = 0, fast = 0):
- return cPickle.dumps(arg, proto)
-
-
- def loads(self, buf):
- return pickle.loads(buf)
-
-
-
- class DumpPickle_LoadCPickle(AbstractPickleTests):
- error = cPickle.BadPickleGet
-
- def dumps(self, arg, proto = 0, fast = 0):
- return pickle.dumps(arg, proto)
-
-
- def loads(self, buf):
- return cPickle.loads(buf)
-
-
-
- def test_main():
- test_support.run_unittest(DumpCPickle_LoadPickle, DumpPickle_LoadCPickle)
-
- if __name__ == '__main__':
- test_main()
-
-